/**
 * amazonSOdetails.js
 *
 * @NAmdConfig ./configuration.json
 * @NApiVersion 2.x
 */
define([
        './deconovo.so.source.creater.amazon'
    ],
    function (amazon, ebay) {
        var attribute = new Object();
        var method = new Object();

        method.getCreaterByPlatform = function (platform) {
            var creater;
            switch (platform) {
                case 'AMAZON'    :
                    creater = amazon;
                    break;
                case 'EBAY'        :
                    creater = ebay;
                    break;
                default            :
                    throw "does not config platform custom builder for " + platform;
            }
            return creater;
        }

        return {
            attribute: attribute,
            method: method
        };
    });